import request from "@/net/HttpRequest";
import * as Url from "@/net/Url";

export function getDict(data = {}) {
	return request({
		url: "",
		method: 'GET',
		data
	});
}

export function checkUpdateApkRequest(type = "") {
	return request({
		url: Url.UPDATE_APK_URL + `?type=${type}`,
		method: 'POST',
		data: {}
	});
}

export function post(data = {}) {
	return request({
		url: Url.LOGIN_URL,
		method: 'POST',
		data
	});
}
export function isAppLiveRequest(data = {}) {
	return request({
		url: Url.ISALIVE_URL + `?id=${data.id}`,
		method: 'POST',
		data:{}
	});
}

export function put(data = {}) {
	return request({
		url: "",
		method: 'PUT',
		data
	});
}

export function del(data = {}) {
	return request({
		url: "",
		method: 'DELETE',
		data
	});
}